package com.atguigu.cloud.service;

import com.atguigu.cloud.config.OrderContent;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @author UI
 */
@Service
public class Order1Service implements IService {
    @Override
    @Async
    public void createOrder() {
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println(Thread.currentThread().getName() + "===" + OrderContent.getUserInfo());

    }
}
